package io.renren.modules.exam.tiMuManage.dao;

import io.renren.modules.exam.tiMuManage.entity.ChuanDiEntity;
import io.renren.modules.exam.tiMuManage.entity.TiMuEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TiMuDao {
    /**
     * 根据题目号，查询题目
     */
   TiMuEntity queryByQuestion(@Param("q_id")int q_id);

   //多个条件查询
   List<TiMuEntity> queryByQuestionMany(String q_typeDescribe,String q_typeFenlei);


   //添加数据
    //前四个数据：题干、题目类型（数字）、正确答案、得分
   int insertTimu(String q_typeDescribe,int q_typeId,String ans_id,String q_score,String ans_id1,String ans_id2,String ans_id3,String ans_id4);

}
